package com.xzx.java.kit.basic.command;

/**
 * @author xinzhixuan
 * @version V1.0
 * @date 2017/12/17 14:27
 */
public class AddCommand implements Command {
    @Override
    public void process(int[] target) {
        int sum = 0;
        for (int temp : target) {
            sum += temp;
        }
        System.out.println("数组元素的总和是：" + sum);
    }
}
